package com.day20;

public class Test3 {
    public static void main(String[] args) {
        int[][] arr1=new int[5][5];//第三种初始化方式
        arr1[0][0]=1;
        arr1[1][1]=2;
        arr1[2][2]=3;
        arr1[3][3]=4;
        arr1[4][4]=5;

        for (int i=0;i<arr1.length;i++){
            for (int j=0;j<arr1[i].length;j++){
                System.out.print(arr1[i][j]+" ");
            }
            System.out.println();
        }
    }
}
